export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  // labelWidth: 110,//设置列名称长度
  // searchLabelWidth: 110,//搜索按钮是否单独成行，并控制搜索按钮的长度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "属性关联ID",
      prop: "spuSkuAttrId",
      type: "input",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
      span: 12
    },
    {
      label: "商品ID",
      prop: "spuId",
      type: "input",
      addDisabled: true,
      editDisabled: true,
      span: 12
    },
    {
      label: "SKU",
      prop: "skuId",
      type: "input",
      addDisabled: true,
      editDisabled: true,
      span: 12
    },
    {
      label: "销售属性ID",
      prop: "attrId",
      type: 'select',
      cascader: ['attrValueId'],
      cascaderIndex: 0,
      dicUrl: `/admin/product/attr/list?attrType=0`,
      props: {
        label: 'name',
        value: 'attrId'
      },
    },
    {
      label: "销售属性值",
      prop: "attrValueId",
      type: 'select',
      dicUrl: `/admin/product/attrValue/list?attrId={{key}}`,
      props: {
        label: 'value',
        value: 'attrValueId'
      },
    },
    {
      label: "创建人",
      prop: "createBy",
      type: "input",
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
  ]
}
